A 15-year-old boy accused of shooting a Portsmouth police officer five times earlier this month was in court Wednesday.